// banner相关的代码
import { ref } from 'vue'
import { getBannerAPI } from '@/api/home'
export function useBanner () {
  const bannerList = ref([])
  const fetchBannerList = async () => {
    const res = await getBannerAPI()
    bannerList.value = res.result
  }
  fetchBannerList()
  return {
    bannerList
  }
}
